package com.ws.util;

import com.ws.domain.Goods;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageUtil {
    private int totalCount;//总数
    private int pageSize=10;//每页显示数量
    private int currpageNum;//当前页
    private int pageCount;//总页数
    private int prePage;//上一页
    private int nextPage;//下一页
    private boolean hasPrePage;//是否有上一页
    private boolean hasNextPage;//是否有下一页
    private int firstPage;//第一页
    private int lastPage;//最后一页
    private int currentcount;//当前从第多少条数据开始显示

    public static String getPageTool(HttpServletRequest request, long total, int page, int size) {
        return null;
    }

    public static Object getPageHtml(HttpServletRequest request, long countByTopType, int page, int size) {
        return null;
    }

    public static Object getPageHtml(HttpServletRequest request, List<Goods> xiaoEight) {
        return null;
    }
}
